﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Odbc;
namespace TOPO
{
    enum neType
    {
        PTN,
        IPRAN,
    };
    class ne
    {
        public string neid;
        public string nename;
        public string NeType;
        public string boardid;
        public string boardname;
        public int boardno;
        public string boardtype;
        public string portname;
        public int portno;
        public neType netype;
        public string portstr;
        public void init()
        {
            if (NeType.Contains("R8"))
                netype = neType.IPRAN;
            else
                netype = neType.PTN;
            if (0 == portname.IndexOf('X'))//X开头，是万兆盘
            {
                portstr = "XGE0/" + boardno.ToString() + "/" + portno.ToString();
            }
            else
            {
                portstr = "GE0/" + boardno.ToString() + "/" + portno.ToString();
            }

        }
    };
    class topoLink
    {
        public ne sne;
        public ne dne;
        public topoLink()
        {
            sne=new ne();
            dne=new ne();
        }
        
    };

     
        
}